package com.tone.ji_volunteer.service.impl;

import com.tone.ji_volunteer.mapper.LogMapper;
import com.tone.ji_volunteer.pojo.Log;
import com.tone.ji_volunteer.service.ActivityLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tone(ang)
 * version 1.0
 */
@Service
public class ActivityLogServiceImpl implements ActivityLogService {
    @Autowired
    private LogMapper logMapper;

    @Override
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void insert(Log log) {
        logMapper.insert(log);
    }
}
